package com.ksc.storekeeper.shared.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.ksc.storekeeper.shared.dto.UserDTO;
import com.ksc.storekeeper.shared.exceptions.ClientException;

@RemoteServiceRelativePath("profile.rpc")
public interface ProfileService extends RemoteService {

	public List<UserDTO> getAllUsers();

	void addUser(UserDTO u);

	public void changePassword(String old, String newPass) throws ClientException;

	public void changeRole(String userName, String role) throws ClientException;

}
